import subprocess

# 关闭名为"locketdlpSvc"的进程
subprocess.run(['taskkill', '/F', '/IM', 'locketdlpSvc.exe'], capture_output=True)
subprocess.run(['taskkill', '/F', '/IM', 'locketdlpUI.exe'], capture_output=True)
subprocess.run(['taskkill', '/F', '/IM', 'locketdlpUpdate.exe'], capture_output=True)
subprocess.run(['taskkill', '/F', '/IM', 'locketdlp.exe'], capture_output=True)